package org.dromara.hrp.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.hrp.domain.HrpPartner;

import java.util.Date;

/**
 * 合作伙伴业务对象 hrp_partner
 *
 * @author wenrui
 * @date 2024-03-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HrpPartner.class, reverseConvertGenerate = false)
public class HrpPartnerBo extends BaseEntity {

  /**
   * id
   */
  @NotNull(message = "id不能为空", groups = {EditGroup.class})
  private Long id;

  /**
   * 上级
   */
  private Long parentId;

  /**
   * 名称
   */
  @NotBlank(message = "名称不能为空", groups = {AddGroup.class, EditGroup.class})
  private String name;

  /**
   * 编码
   */
  private String code;

  /**
   * 性别
   */
  private String sex;

  /**
   * 手机号
   */
  @NotBlank(message = "手机号不能为空", groups = {AddGroup.class, EditGroup.class})
  private String mobile;

  /**
   * 是否启用
   */
  @NotBlank(message = "是否启用不能为空", groups = {AddGroup.class, EditGroup.class})
  private String status;

  /**
   * 固定电话
   */
  private String telephone;

  /**
   * 邮箱
   */
  private String email;

  /**
   * 标识
   */
  private String logo;

  /**
   * 网站地址
   */
  private String website;

  /**
   * 身份证号
   */
  private String idCard;

  /**
   * 生日
   */
  private Date birthday;

  /**
   * 评分
   */
  private Long score;

  /**
   * 地址
   */
  private String address;

  private Boolean isCustomer;

  private Boolean isSupplier;

  private Boolean isManufacturer;
  /**
   * 图片
   */
  private String picture;

  /**
   * 备注
   */
  private String remark;


}
